﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TicketRouting.aspx.cs" Inherits="TicketM.TicketRouting" MasterPageFile="Site.Master" %>

<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1>Ticketing Application Configuration Manager</h1>
            </hgroup>
        </div>
    </section>
</asp:Content>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <table>
        <tr style="height:50px">
            <td style="border-right:solid;border-right-color:darkgrey;border-bottom:solid;border-bottom-color:darkgrey">
                <asp:Label runat="server" ID="lblProject" Text="" />
                <asp:Label runat="server" ID="TicketTitle" Width="400px" ReadOnly="true" Text="Ticket" Font-Size="Large" />
            </td>
            <td  style="padding-left:20px;border-right:solid;border-right-color:darkgrey;border-bottom:solid;border-bottom-color:darkgrey">
                <asp:Label runat="server" ID="lblPrmpt" Text="Select Target Team Project" Font-Size="Large" />
            </td>
            <td>
                <asp:Button ID="StoreButton" OnClick="StoreButton_Click" runat="server" Text="Move Ticket" Enabled="False" Width="200px" />
            </td>
        </tr>
        <tr>
            <td style="vertical-align:top;border-right:solid;border-right-color:darkgrey">
                <asp:HiddenField ID="SelectedTicketId" runat="server" Value="0" />
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="TicketsDS" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
                    <Columns>
                        <asp:CommandField ShowSelectButton="True" />
                        <asp:BoundField DataField="TicketID" HeaderText="Ticket ID" />
                        <asp:BoundField DataField="TicketTitle" HeaderText="Title" />
                    </Columns>
                </asp:GridView>
                <asp:ObjectDataSource ID="ProjectsDS" runat="server" SelectMethod="GetProjects" TypeName="TicketM.Models.Tickets">
                </asp:ObjectDataSource>
             </td>
            <td style="vertical-align: top;padding-left:20px;border-right:solid;border-right-color:darkgrey; padding-top:10px">

                
                <asp:DropDownList ID="PrjLst" runat="server" Height="16px" Width="208px">
                    
                </asp:DropDownList>
            </td>
            <td style="vertical-align:top">
                &nbsp;</td>
        </tr>
    </table>

    <asp:ObjectDataSource ID="TicketsDS" runat="server" SelectMethod="GetTickets" TypeName="TicketM.Models.Tickets" OnSelecting="TicketsDS_Selecting">
                    <SelectParameters>
                        <asp:Parameter Name="sProject" Type="String" />
                    </SelectParameters>
    </asp:ObjectDataSource>

    </asp:Content>
